home *** CD-ROM | disk | FTP | other *** search
- /* this is stuff so that we can call routines in a CODE Resource
- * with a pointer. It's faster than calling the resource through
- * the resource manager, that's why we do this !
- */
-
-
- static
- __storeA4()
- {
- asm {
- bsr.s @1
- dc.l 0 ; store A4 here
- @1 move.l (sp)+,a1
- }
- }
-
-
- #define storeA4() __storeA4(); asm { move.l a4,(a1) }
-
- #define getA4() asm { move.l a4,-(sp) } __storeA4(); asm { move.l (a1),a4 }
- #define getoldA4() asm { move.l (sp)+,a4 }
-